
package JET.Centers;

import JET.Actions.Action;
import java.util.ArrayList;

/**
 *
 * @author 057Ry
 */
public class ActionsCenter {

    ArrayList<Action> actionList;

    public ActionsCenter() {
        actionList = new ArrayList<Action>();
    }

    public ArrayList<Action> getActionList() {
        return actionList;
    }
    public int getActionsCount() {
        return actionList.size();
    }

    public void addAction(Action a) {
        actionList.add(a);
    }

    public void removeAction(Action a) {
        actionList.remove(a);
    }

    public Action getAction(int i) {
        if (actionList.size()>0 && i>=0 && i<actionList.size())
            return actionList.get(i);
        else
            return null;
    }
}
